package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.com.api.entity.ApiU_bonus;
import cn.com.api.mapper.base.U_bonusMapperBase;
import cn.com.util.PageInfo;

//DAO
public interface ApiU_bonusMapper extends U_bonusMapperBase {

	public ApiU_bonus findU_bonusByID(@Param("bonus_id") Integer bonus_id);

	// 新增对象后返回记录ID
	public int U_bonusInsertion(ApiU_bonus u_bonus);

	public List<ApiU_bonus> findBonusByMap(@Param("map") Map map);

	public ApiU_bonus getBonusInfoByMap(@Param("map") Map map);

	// 根据广告ID获取红包明细
	public ApiU_bonus findBlesswordsByAdvertID(@Param("advert_id") String advert_id);

	public List<ApiU_bonus> getExprieBonus(Integer hours);
	
	//发出的红包列表
	public List<ApiU_bonus> getSendNormalBonusListPage(@Param("user_id") String user_id, @Param("page") PageInfo page);
}
